﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace com.iot.core.boot.configuration
{
    public class FileConfig : IConfig
    {
        public string FixHttpPrev { get; set; } = "";         
        public int MaxImageSize { get; private set; } = 16*1024*1024;
        public int MaxFileSize { get; private set; } = 160 * 1024 * 1024;
        [JsonIgnore]
        public string Name
        {
            get
            {
                return "FileConfig";
            }
        }

        /// <summary>
        /// Gets an order of configuration
        /// </summary>
        /// <returns>Order</returns>
        public int GetOrder() => 0; //display first
    }
}
